#ifndef TECHPARAMETER_H
#define TECHPARAMETER_H
#include "datasource.h"
#include "recipient.h"

#include <QString>

enum paramStatus
{
    PS_UNKNOWN=0,
    PS_INVALID,
    PS_NORMAL
};

class CTechParameter
{
    FDataSource * source;
    QString Name;
    QString group;
    double value;
    unsigned int status;

public:
    bool isAlarm;
    QString archFilename;

public:
    CTechParameter(QString name="noname",QString group="nogroup");

    void setSource(FDataSource* src);

    void update();

    double getValue() const {return value;}
    unsigned int getStatus() const {return status;}
    const QString getName() const {return Name;}
    const QString getGroup() const {return group;}
};

#endif // TECHPARAMETER_H
